/**
 * Created by Administrator on 2018/1/12.
 */
var appMaster = {

    preLoader: function(){
        imageSources = []
        $('img').each(function() {
            var sources = $(this).attr('src');
            imageSources.push(sources);
        });
        if($(imageSources).load()){
            $('.pre-loader').fadeOut('slow');
        }
    },

    revSlider: function() {

        // var docHeight = $(window).height();


        var mainSlider = $('.tp-banner').revolution({
            delay: 9000,
            startwidth: 1170,
            startheight: 300,
            hideThumbs: 10,
            touchenabled: false,
            fullWidth: "off",
            hideTimerBar: "on",
            fullScreen: "off",
            onHoverStop: "off",
            fullScreenOffsetContainer: "",
        });

    },



}; // AppMaster


$(document).ready(function() {

    appMaster.revSlider();

    // appMaster.placeHold();

});

$(function(){
    $('.suixuntong .details').click(function(){
        $('.sxtsrc').attr('src',$(this).attr('data-sxtsrc'))
        return false;
    })
})